package com.ss.android.article.common.share.entry;

import android.graphics.drawable.Drawable;

import com.ss.android.article.browser.R;
import com.ss.android.article.share.e.a;

public enum Action implements a {
    pgc(R.string.action_view_pgc, 0, 12),
    favor(R.string.bs, R.drawable.ft, 13),
    report(R.string.cf, R.drawable.fy, 16),
    add_pgc_to_desktop(R.string.b_, R.drawable.f_, 20),
    dislike(R.string.bn, R.drawable.g8, 38);

    public Drawable drawable;
    public int iconId;
    public String iconUrl;
    public int itemId;
    public boolean status;
    public int textId;

    private Action(int i, int i2, int i3) {
        this.textId = i;
        this.iconId = i2;
        this.itemId = i3;
        this.status = false;
        this.iconUrl = "";
    }

    public static boolean hasAction(int i) {
        for (a itemId : values()) {
            if (itemId.getItemId() == i) {
                return true;
            }
        }
        return false;
    }

    public static Action indexOf(int i) {
        Action[] values = values();
        return (values == null || i < 0 || i >= values.length) ? null : values[i];
    }

    public final String getExtra() {
        return null;
    }

    public final int getIconId() {
        return this.iconId;
    }

    public final String getIconUrl() {
        return this.iconUrl;
    }

    public final int getItemId() {
        return this.itemId <= 0 ? ordinal() : this.itemId;
    }

    public final boolean getStatus() {
        return this.status;
    }

    public final int getTextId() {
        return this.textId;
    }
}